import Vue from "vue"
import VueRouter from "vue-router"
import iView from "iview"

import Home from "./view/Home.vue"
import Course from "./view/Course.vue"
import Scenery from "./view/Scenery.vue"
import School from "./view/School.vue"
import Viewing from "./view/Viewing.vue"
import Teacher from "./view/Teacher.vue"
import Leader from "./view/Leader.vue"
import IntroList from "./view/IntroList.vue"

import "iview/dist/styles/iview.css"
import "./style/main.css"

require("date-format-lite");

Vue.use(VueRouter);
Vue.use(iView);

const routes = [
    {
        path: "/",
        component: Home
    },
    {
        path: "/course",
        component: Course
    },
    {
        path: "/scenery",
        component: Scenery
    },
    {
        path: "/school",
        component: School
    },
    {
        path: "/viewing",
        component: Viewing
    },
    {
        path: "/teacher",
        component: Teacher
    },
    {
        path: "/leader",
        component: Leader
    },
    {
        path: "/intro-list",
        component: IntroList
    }
];

const router = new VueRouter({
    routes
});

new Vue({
    router
}).$mount("#app");
